//
//  BaseNavigationController.m
//  MemberProject
//
//  Created by MAC OS X on 15/4/2.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "BaseNavigationController.h"

@interface BaseNavigationController ()<UIGestureRecognizerDelegate>

@end

@implementation BaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationBar.barTintColor=[UIColor colorWithRed:90/255.0 green:204/255.0 blue:181/255.0 alpha:1];
    self.navigationBar.tintColor = [UIColor whiteColor];
    
    self.interactivePopGestureRecognizer.delegate=self;
//    NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName,[UIFont systemFontOfSize:18],NSFontAttributeName, nil];
    
    
//    [self.navigationBar setTitleTextAttributes:attributes];
    
}

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{
    if(self.isHideInteractivePopGestureRecognizer==YES){
        return NO;
    }
    if(self.viewControllers.count==1){
        return NO;
    }else{
        return YES;
    }
}
@end
